package com.n9.buymsg.service.qqonline;

import com.n9.buymsg.util.JsonUtils;
import com.n9.sdk.model.PurchaseMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 消息保存失败处理器
 * @Author: ice
 * @Date: 2020-07-07 16:40
 */
public class MsgStoreFailedHandler {
    private static final Logger STORE_FAILED_MSG_LOGGER = LoggerFactory.getLogger("storeFailedMsg");

    /**
     * 处理保存失败消息
     * @param purchaseMessage
     */
    public static void handleFailed(PurchaseMessage purchaseMessage) {
        String jsonMsg = JsonUtils.bean2Json(purchaseMessage);
        STORE_FAILED_MSG_LOGGER.info(jsonMsg);
    }
}
